BleOptions Class Reference

Inherits from NSObject
Declared in BleOptions.h
BleOptions.m

  scanForPeripheralsWithOptions

扫描参数 The scanning parameters

@property (nonatomic, copy) NSDictionary *scanForPeripheralsWithOptions

Parameters

An

optional dictionary specifying options for the scan.

Discussion

扫描参数 The scanning parameters

Declared In

BleOptions.h

  connectPeripheralWithOptions

连接设备的参数 Parameters of the connected device

@property (nonatomic, copy) NSDictionary *connectPeripheralWithOptions

Parameters

An

optional dictionary specifying connection behavior options.

Discussion

连接设备的参数 Parameters of the connected device

Declared In

BleOptions.h

  scanForPeripheralsWithServices

扫描参数 The scanning parameters

@property (nonatomic, copy) NSArray *scanForPeripheralsWithServices

Parameters

serviceUUIDs

A list of CBUUID objects representing the service(s) to scan for.

Discussion

扫描参数 The scanning parameters

Declared In

BleOptions.h

  connectTimeout

连接设备超时时间,默认5s The timeout time of connected device is 5s by default

@property (nonatomic, assign) float connectTimeout

Discussion

连接设备超时时间,默认5s The timeout time of connected device is 5s by default

Declared In

BleOptions.h

  dataPageSize

一个数据包大小,默认150 One packet size, default 150

@property (nonatomic, assign) int dataPageSize

Discussion

一个数据包大小,默认150 One packet size, default 150

Declared In

BleOptions.h